#include <string.h>
#include <fstream>
std::ofstream file, file2;
void inline create(std::string x)
{

    file.open("file.txt", std::ios::ate | std::ios::out);
    file << x << ("\n") << ("The length is: ") << x.length();
    file.close();
}

void inline copy()
{
    file2.open("file2.txt", std::ios::ate | std::ios::out);
    file.open("file.txt",  std::ios::binary | std::ios::in);
    file2 << file.rdbuf() << ("\nThis is a copy.");
}
